Skip to content

Knowledge: connect a Bedrock knowledge base in place - #343

Merged
nambok merged 4 commits into
mainfrom
knowledge-connect-bedrock
Nov 9, 2026
Merged

nambok merged 4 commits into
mainfrom
knowledge-connect-bedrock

Conversation

@nambok

@nambok nambok commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The dashboard side of connecting a Bedrock knowledge base in place (platform: CoderHelm/coderhelm-platform#526). A new knowledge base can be an Amazon Bedrock knowledge base that Coderhelm searches live in the team's AWS account, with nothing copied. Its page says so instead of listing files.

Changes

  • Add flow (components/knowledge/add-flow.tsx): a "Bedrock knowledge base" tile, offered only when making a new knowledge base (a whole base is connected in place, so adding to an existing one never offers it).
    • The step takes a pasted ARN. On a self-hosted install it also lists the knowledge bases in the install's own account and region; picking one fills the ARN and names the base.
    • A malformed ARN, an already connected one, and an AWS account that isn't connected to Coderhelm are said before anything is sent.
    • The name step says "Connected in place: searched live in your AWS account, nothing copied." and who sees what. Connect knowledge base sends connect: { provider: "bedrock_kb", target }, and the server runs one test search.
    • A failure shows the gateway's sentence and fix. When the team's role only lacks the permission, it also offers Open the update in AWS, the one-click CoderHelmLogReader update for that account. When a self-hosted install's access stack hasn't been applied yet, it says so plainly, with Settings, System, Version, Permissions.
  • Base page (app/knowledge/base/page.tsx): a connected base shows "Connected in place: searched live in your AWS account, nothing copied" instead of the sources, uploads and file list. The card shows the ARN, account and region, which role searches it, and the search kind, plus Check connection (one test search, the same plain answers). It has no Add button, no upload, no drop target, and Disconnect knowledge base in place of delete, which says nothing changes in AWS.
  • Knowledge list: a connected base's card shows the Bedrock mark and "Connected in place, searched live in AWS".
  • lib/knowledge.ts: Backend, BedrockStart, ConnectProblem, knowledge.bedrock(), knowledge.check(). lib/api.ts: ApiError keeps the answer's JSON (body), so a page can show a fix or a link as well as the message.
  • Docs: docs/content/docs/concepts/knowledge-sources.mdx has a section on connecting in place for hosted teams: connect the account, paste the ARN, the one-click grant, citations, and who can read it.
  • Site: the home page and the feature list say a Bedrock knowledge base can be connected in place, searched in your AWS account with nothing copied.
  • openapi-fields.ts regenerated from the platform main after deps: bump typescript from 5.9.3 to 7.0.2 in /infra #526 merged (no field changes; the knowledge API isn't in the public document).
  • docs/platform.lock.json moved to the platform main after deps: bump typescript from 5.9.3 to 7.0.2 in /infra #526 merged, so the hosted docs import the self-hosting guide section the knowledge sources page links to.

Verification

  • npm run openapi:fields -- --ref knowledge-connect-bedrock, then npm run check:openapi: matches CoderHelm/coderhelm-platform@3cdb08115cb7.
  • npx tsc --noEmit -p .: clean. npm run lint (UI lint): passed, with font-mono back at its baseline because ARNs use <Code>.
  • Playwright: the new e2e/knowledge-bedrock.spec.ts covers five cases.
    • Hosted: paste an ARN, see the role refusal with the grant link, then connect and land on the connected page.
    • Self-hosted: pick from the install's list, and see the unapplied access stack said plainly.
    • The connected page: no file list, uploads or Add, and the connection check passing and failing.
    • No Bedrock tile when adding to an existing base.
    • Nothing scrolls sideways at 375 wide.
    • Together with knowledge, knowledge-connect, knowledge-picker, knowledge-signin and knowledge-app-choice: 55 passed. One earlier run had a single failure in a Sanity sign-in test, which passed on its own and in the full rerun.
  • Merge after the platform PR, which serves /api/knowledge/bedrock, /api/knowledge/:id/check and backend. Against an older gateway the tile's step can't load its list, and every base reads as kept here.

- A "Bedrock knowledge base" tile when making a new knowledge base: paste
  its ARN, or on a self-hosted install pick one of the install account's.
  A bad ARN and an AWS account that isn't connected are said before
  anything is sent; naming it, then one test search on the server.
- A failed test search shows what happened and what to do, with the
  one-click CoderHelmLogReader update when the role only lacks the grant,
  and says plainly when the install's access stack hasn't been applied.
- The base page says "Connected in place: searched live in your AWS
  account, nothing copied" instead of a file list: where it lives, how it is
  reached, and a connection check. No uploads, apps or drop target there;
  the list card says it is searched live.
- ApiError keeps the answer's JSON, for pages that show more than the
  message.
- Docs: the hosted knowledge sources page.
- openapi-fields from the platform's knowledge-connect-bedrock branch.
@nambok
nambok force-pushed the knowledge-connect-bedrock branch from f155f89 to 1c11b67 Compare November 9, 2026 01:53
@nambok
nambok merged commit 2eab060 into main Nov 9, 2026
10 checks passed
@nambok
nambok deleted the knowledge-connect-bedrock branch November 9, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant